<div id="contact_block">
                        <div id="contact_block_head" class="scroll_to">
                            
                        </div>
                        
                        <div id="contact_block_body">
                            <div id="contact_logo">
                                <?php echo image_asset('contact_logo.jpg', '', array('alt'=>$title)); ?></a>
                            </div>
                            <div id="contact_form">
                                <?php echo image_asset('contact_form.jpg', '', array('alt'=>$title)); ?></a>
                                
                                <form action="<?php echo site_url(); ?>contact/send" method="post" id="contact_form_frm">
                                    <input type="text" class="input_text" name="name" id="contact_form_name" value="<?php echo $name; ?>" onfocus="if($(this).val()=='Your name'){$(this).val('');}" onblur="if($(this).val()==''){$(this).val('Your name');}" />
                                    <input type="text" class="input_text" name="email" id="contact_form_email" value="<?php echo $email; ?>" onfocus="if($(this).val()=='E-mail'){$(this).val('');}" onblur="if($(this).val()==''){$(this).val('E-mail');}" />
                                    <input type="text" class="input_text" name="phone" id="contact_form_phone" value="<?php echo $tel; ?>" onfocus="if($(this).val()=='Phone number'){$(this).val('');}" onblur="if($(this).val()==''){$(this).val('Phone number');}" />
                                    <textarea name="msg" id="contact_form_msg" onfocus="if($(this).val()=='Massage'){$(this).val('');}" onblur="if($(this).val()==''){$(this).val('Massage');}">Massage</textarea>
                                                <div id="contact_form_bt">
                                                    <input type="reset" value="Clear" id="contact_form_clearbt" />
                                                    <input type="submit" value="Submit" id="contact_form_submitbt" />
                                                </div>
                                </form>
                            </div>
                            <div id="contact_address">
                                บริษัท สไลเดอร์เวิลด์ ซิสเต็มส์ จำกัด <br />
                                129/16  หมู่ 2 ต.สามโคก  อ.สามโคก จ.ปทุมธานี 12160<br />
                                โทรศัพท์  :  02-581-0144-5 <br />
                                มือถือ  :  081-614-3312<br />
                                แฟกซ์ :  02-581-0146
                                <div class="clear"></div>
                                <a href="http://map.google.com" title="Map" rel="nofollow" target="_blank">
                                    <?php echo image_asset('contact_map.jpg', '', array('alt'=>'map','class'=>'img_link')); ?></a>
                                </a>
                            </div>
                            <div class="clear"></div>
                        </div>
                        
                        <div id="contact_block_footer">
                            
                        </div>
                    </div>
		    <script type="text/javascript" src="<?php echo js_asset_url('jquery.validate.min.js'); ?>"></script>
		    <script type="text/javascript">
			$(document).ready(function(){
			    $("#contact_form_frm").validate({
				rules: {
				    name: "required",
				    email: {
					required: true,
					email: true
				    },
				    phone: "required",
				    msg: "required"
				},
				messages: {
				    name: "&nbsp;&nbsp;&nbsp;&nbsp;<em>Please enter your name</em>",
				    email: {
					required: "&nbsp;&nbsp;&nbsp;&nbsp;<em>Please enter your email address</em>",
					email: "&nbsp;&nbsp;&nbsp;&nbsp;<em>Please enter a valid email address</em>"
				    },
				    phone: "&nbsp;&nbsp;&nbsp;&nbsp;<em>Please enter your phone number</em>",
				    msg: "&nbsp;&nbsp;&nbsp;&nbsp;<em>Please enter your massage</em>"
				}
			    });
			    
			    $('#contact_form_submitbt').click(function(){
				if($("#contact_form_frm").valid()){
				   $("#contact_form_frm").submit();
				}
			    });
			});
		    </script>
                    <style>
                        label.error {
                                width:16px !important;
                                height: 16px !important;
                                position: absolute !important;
                                text-align: left !important;
                                margin-left:-17px;
                                margin-top:10px;
                        }
                    </style>